const fs =require('fs')
const path =require('path')
console.log(__dirname)
let file ='./sub/read.txt'
file=path.join(__dirname,file)
console.log(file);
fs.readFile(file,'utf8',(err,data)=>{
    if(err){
        console.log(err);
    }else{
        console.log(data);
    }
})